

#ifndef __BSP_TEST_H
#define __BSP_TEST_H

#include "stdint-gcc.h"
#define CNTZERO 10000
#define ENCODERPLUSE 8192


typedef struct 
{
    uint32_t timPWM_Value[3];
    uint32_t currentADC_Value[3];
    uint32_t voltageADC_Value[2];
    uint32_t voltageDAC_Value[2];
    int32_t  tim2_cnt;
    float    angle;

}bspValue, *pBspValue;


void bsp_init(void);
void adc_dma_start(void);
void ADCDMAIRQHandler(void);
void adc2_irq_handler(void);
void dac_dmaIRQ_handler(void);
void dac_test(void);
#endif